	<style>
		#metable{
			width:100%;
		}
		#metable th{
			text-align:center;
		}
		#metable td{
			text-align:center;
		}
	</style>
	<style>
	.content{
		width:100%;
		height:400px;
	}
	.left{
		float:left;
		padding-top:5%;
		margin-left:5%
	}
	.right{
		width:30%;
		padding-top:5%;
		height:90%;
		margin-left:400px;
	}
</style>	
	<include file='Public/header' />
	<?php
		$id=$_SESSION['user']['id'];
		$picpath=str_replace("thumb_","",$list[0]['pic']);
	?>
	<h1 class="page-header">用户信息</h1>
	<a class="pull-right" href="{:U('mod',array('id'=>$id))}">修改信息</a>
	<div id="mainbody">
		<div class="content">
			<div class="left">
				<image src="__PUBLIC__/photo/{$picpath}" width="150px" height="200px">	
			</div>
			<div class="right">
			<table class="table">
				<tr><th>用户名</th><td>{$list[0]['name']}</td></tr>
				<tr><th>联系方式</th><td>{$list[0]['phone']}</td></tr>
				<tr><th>默认收货地址</th><td>{$list[0]['location']}</td></tr>
				<tr><th>注册时间</th><td>{$list[0]['regtime']}</td></tr>
				</table>
			</div>
		</div>
	</div>
<include file='Public/footer'/>
